<?php

	// Database connection
	$dbusername    = "scharlessantos4";     							// database username
	$dbpassword    = "A13572468a"; 									    // database password
	$dbname        = "scharlessantos4";                                 // database name
	$dbhost        = "mysql05.scharlessantos.hospedagemdesites.ws";     // host address of your mysql server
	$dbprefix      = ""; 												// prefix for all database tablenames if you need one
	
	// Database tables
	$dbver     = $dbprefix . "dbver";
	

	// php5.3 requires time zone to be defined to avoid warnings - we explicitly want to use the server time zone here to be in sync with mysql
	@date_default_timezone_set(date_default_timezone_get());
	
	// Update last action time at DB
	if (isset($_SESSION['s_userid']) && is_numeric($_SESSION['s_userid'])) {
		$query = "UPDATE $utablename SET last_action=now() WHERE id='".$_SESSION['s_userid']."'";
		$global_mysql_con = mysql_connect($dbhost,$dbusername,$dbpassword);
		mysql_select_db($dbname,$global_mysql_con);
		mysql_query($query,$global_mysql_con);
	}
?>